package com.jiang.mall.mallproduct;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@EnableRedisHttpSession
// 扫描feign所在的包，必须是在同父包下才能扫描到
@EnableFeignClients(basePackages = "com.jiang.mall.mallproduct.product.feign")
@MapperScan("com.jiang.mall.mallproduct.product.dao")
@EnableDiscoveryClient // 开启服务注册与发现功能
@SpringBootApplication
public class MallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallProductApplication.class, args);
    }

}
